package groupe22;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;

/**
 *
 * @author colle53
 */
public class Main extends JFrame {

    public Main(){
        
                //changement du look and feel, on recupere celui de windows
        try {
            
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            
        } catch (Exception ex) { }
        
        Container conteneur=this.getContentPane();
        conteneur.setLayout(new GridLayout(1,3));
        FileGestion fg = new FileGestion();
        VueArborescenceP vueP = new VueArborescenceP(fg);
        VueArborescenceL vueL = new VueArborescenceL();
        this.add(vueP);
        
        JPanel centre = new JPanel();
        centre.setLayout(new BorderLayout());
        centre.setMinimumSize(new Dimension(400,600));
        centre.setBackground(Color.lightGray);
        this.add(centre);
        this.add(vueL);
        this.setSize(800,600);
        this.setVisible(true);
    }
   
    
    
    public static void main(String[] args) {
        new Main();
       
        
        
    }
    
}
